-- GENERATED SPELL FOR [Theramore Marksman] --


function spell0_23900(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(42580,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23900', 622, 1)
end

function Sorts_23900(pUnit, Event)
local choix_sorts_23900 = math.random(0, 0)
if choix_sorts_23900 == 0 then
pUnit:RegisterEvent('spell0_23900', 1, 1)
end
end

function mob23900_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23900', math.random(1500, 3000), 1)
end

function mob23900_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23900_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23900_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23900, 1, 'mob23900_Action')
RegisterUnitEvent(23900, 2, 'mob23900_Leave')
RegisterUnitEvent(23900, 3, 'mob23900_Kill')
RegisterUnitEvent(23900, 4, 'mob23900_Die')
